/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.usercenter.domain.domain;

import cn.hallele.mc.sdk.usercenter.common.enums.TenantStatusEnum;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * hallele_ms_usercenter
 *
 * @author anle5
 * @since 2024/10/13 14:32
 */
@Setter
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TenantDomain implements Serializable {
    @Serial
    private static final long serialVersionUID = -2606665467828803138L;

    /**
     * 身份唯一标识
     */
    private Integer id;

    /**
     * 租户名
     */
    private String name;

    /**
     * 父节点id
     */
    private Integer parentId;

    /**
     * 父节点id路径
     */
    private String treePath;

    /**
     * 显示顺序
     */
    private Integer sort;

    /**
     * 状态(1:正常;0:禁用)
     */
    private TenantStatusEnum status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 创建人id
     */
    private Long createBy;

    /**
     * 修改人id
     */
    private Long updateBy;
}